public class textdemo {
    public static void main(String[] args) {
        Date date = new Date(2025, 5, 25);
        System.out.println(date);

    }
    /*public static void swap(MyDate myDate1, MyDate myDate2){
        int tmp= myDate1.value;
        myDate1.value= myDate2.value;
        myDate2.value=tmp;
    }

    public static void main(String[] args) {
        MyDate myDate1 = new MyDate();
        myDate1.value = 10;
        MyDate myDate2 = new MyDate();
        myDate2.value = 20;
        System.out.println("交换前value的值为"+myDate1.value);
        System.out.println("交换前value的值为"+myDate2.value);
        swap(myDate1,myDate2);
        System.out.println("交换后value的值为"+myDate1.value);
        System.out.println("交换后value的值为"+myDate2.value);
    }

   /*public static void main1(String[] args){
     Dog dog1=new Dog();
     dog1.name="旺财";
     dog1.age=10;
     dog1.band="柴犬";
     dog1.eat();
    }*/
}
